home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
kermit.columbia.edu
/
kermit.columbia.edu.tar
/
kermit.columbia.edu
/
newsgroups
/
misc.19971216-19980424
/
000216_news@newsmaster….columbia.edu _Thu Feb 12 12:52:22 1998.msg
< prev
next >
Wrap
Internet Message Format
|
1998-04-22
|
3KB
Return-Path: <news@newsmaster.cc.columbia.edu>
Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.35.30])
by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id MAA06867
for <kermit.misc@watsun.cc.columbia.edu>; Thu, 12 Feb 1998 12:52:22 -0500 (EST)
Received: (from news@localhost)
by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id MAA08074
for kermit.misc@watsun; Thu, 12 Feb 1998 12:52:21 -0500 (EST)
Path: news.columbia.edu!watsun.cc.columbia.edu!fdc
From: fdc@watsun.cc.columbia.edu (Frank da Cruz)
Newsgroups: comp.protocols.kermit.misc
Subject: Re: "Flushing" input characters during scripting?
Date: 12 Feb 1998 17:52:18 GMT
Organization: Columbia University
Lines: 56
Message-ID: <6bvcsi$8e1$1@apakabar.cc.columbia.edu>
References: <rm4t26x9fk.fsf@fluent.com> <6bsspi$nin$1@apakabar.cc.columbia.edu> <rm1zx9y9cz.fsf@fluent.com> <34E32F5A.36AF@sep.stanford.edu>
NNTP-Posting-Host: watsun.cc.columbia.edu
Xref: news.columbia.edu comp.protocols.kermit.misc:8402
In article <34E32F5A.36AF@sep.stanford.edu>,
Stewart Levin <stew@sep.stanford.edu> wrote:
: [ Latest kermit, RedHat Linux 3 (not the latest) on a Gateway 2000 PC. ]
:
: Over a dialup connection, I am feeding a short list
: of items to a text-based application that reformats and
: standardizes them against a database. Using the INPUT
: and OUTPUT commands to control the flow, I capture the
: relevant lines of application response to a log file
: from whence I extract the updated items offline.
:
: One ugly hack I'd like to get rid of is using an
:
: INPUT 1 ZZZZZ
:
: to flush characters arriving after an end-of-item line
: and before a subsequent item input prompt. Without it,
: the kermit application quickly hangs, presumably because
: of buffer limits.
:
When you say "latest Kermit", which one do you mean? The
current version is 6.0. What do you mean by "hang"? It
should not hang; an INPUT command should either succeed or
time out. To the best of my knowledge, that's what it does.
: Is there a better solution? (Yes,
: I did try a couple of commands in the reference manual
: that reset or flush internal buffers.)
:
Like CLEAR INPUT? Normally all you should need to do is an
INPUT command for the next prompt.
: Also, I found that when I wrote my test scripts to include
: fully-spelled out kermit commands and fully checking
: all status codes, the script produced wierd error messages.
: Abbreviating the commands made the problem go away.
:
Please send the details to kermit-support@columbia.edu and
we'll sort it out.
: Any tips on other ways to conserve scripting buffer space?
:
Abbreviating wherever possible. Kermit presently does not
support "compiled scripts".
: Embedded TAKE commands?
:
Yes, you can do that too. And macros that call other macros.
And user-defined functions, etc etc.
: Looping macros versus straight line expansion?
:
I'm not sure what you mean, but yes, you can have loops,
SWITCH statements, whatever you want.
- Frank